trace — trace of a matrix


\begin{rail}
Trace : 'trace' '(' Matrix ')' ;
\end{rail}
trace returns the trace of the argument matrix. This is the sum of the terms on the main diagonal. $\Longrightarrow$ This is not an built-in function. This function is normally loaded on start-up from the trace.r file in the standard rlib directory. Use of the -r option, incorrectly setting the RLAB_LIB_DIR environmental variable, or modifying trace.r may make this function unavailable.

Subsections